package com.bienvenue.main.weight;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * @ProjectName: Bienvenue
 * @Package: com.bienvenue.main.weight
 * @ClassName: ViewPagerFixed
 * @Description: java类作用描述
 * @Author: liys
 * @CreateDate: 2020/9/7 11:15
 * @UpdateUser: Mr.Chen
 * @UpdateDate: 2020/9/7 11:15
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */


public class ViewPagerFixed extends ViewPager {
    public ViewPagerFixed(@NonNull Context context) {
        super(context);
    }

    public ViewPagerFixed(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        try {
            return super.onInterceptTouchEvent(ev);
        } catch (IllegalArgumentException ex) {
            ex.printStackTrace();
        }
        return false;
    }
}
